﻿namespace etracks.Web
{
    using etracks.EntityModels;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.ComponentModel.DataAnnotations;

    /// <summary>
    /// ViewModel used in CourseController, Index action
    /// </summary>
    public class CourseIndexViewModel
    {
        public int Courses { get; set; }
    }

    /// <summary>
    /// ViewModel used in CourseController, List action
    /// </summary>
    public class CourseListViewModel
    {
        public List<Course> CourseList { get; set; }

        public CourseListViewModel()
        {
            this.CourseList = new List<Course>();
        }
    }

    /// <summary>
    /// ViewModel used in CourseController, Search action
    /// </summary>
    public class CourseSearchViewModel
    {
        public string Search_Term { get; set; }

        public List<Course> CourseList { get; set; }

        public CourseSearchViewModel()
        {
            this.CourseList = new List<Course>();
        }
    }

    public class CourseRegistrationViewModel : Course { }
}

